.class final Lnbisdk/hk;
.super Lnbisdk/gp;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lnbisdk/ba;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private synthetic kA:Lnbisdk/ba;


# direct methods
.method constructor <init>(Lnbisdk/ba;)V
    .locals 0

    iput-object p1, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-direct {p0}, Lnbisdk/gp;-><init>()V

    return-void
.end method


# virtual methods
.method public final locationUpdated(Lcom/nbi/location/Location;)V
    .locals 6

    const/4 v5, 0x0

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {v0}, Lnbisdk/ba;->c(Lnbisdk/ba;)V

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {v0}, Lnbisdk/ba;->d(Lnbisdk/ba;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-object v2, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-wide v2, v2, Lnbisdk/ba;->sq:J

    sub-long/2addr v0, v2

    iget-object v2, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    iput-wide v3, v2, Lnbisdk/ba;->sq:J

    iget-object v2, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v2, v2, Lnbisdk/ba;->ca:Lcom/nbi/common/NBIContext;

    invoke-static {v2}, Lnbisdk/bd;->d(Lcom/nbi/common/NBIContext;)Lnbisdk/cj;

    move-result-object v2

    invoke-interface {v2}, Lnbisdk/cj;->isEnabled()Z

    move-result v2

    if-nez v2, :cond_2

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {v0, v5}, Lnbisdk/ba;->a(Lnbisdk/ba;Z)Z

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iput-object p1, v0, Lnbisdk/ba;->sp:Lcom/nbi/location/Location;

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v1, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v1, v1, Lnbisdk/ba;->sp:Lcom/nbi/location/Location;

    invoke-virtual {v0, v1}, Lnbisdk/ba;->d(Lcom/nbi/location/Location;)V

    :cond_1
    :goto_1
    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {v0}, Lnbisdk/ba;->f(Lnbisdk/ba;)V

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {v0}, Lnbisdk/ba;->g(Lnbisdk/ba;)V

    goto :goto_0

    :cond_2
    iget-object v2, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v2, v2, Lnbisdk/ba;->sp:Lcom/nbi/location/Location;

    if-eqz v2, :cond_3

    iget-object v2, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-virtual {v2}, Lnbisdk/ba;->jq()I

    move-result v2

    int-to-long v2, v2

    cmp-long v0, v0, v2

    if-lez v0, :cond_4

    :cond_3
    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iput-object p1, v0, Lnbisdk/ba;->sp:Lcom/nbi/location/Location;

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v1, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v1, v1, Lnbisdk/ba;->sp:Lcom/nbi/location/Location;

    invoke-virtual {v0, v1}, Lnbisdk/ba;->d(Lcom/nbi/location/Location;)V

    :cond_4
    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {v0}, Lnbisdk/ba;->e(Lnbisdk/ba;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v0, v0, Lnbisdk/ba;->sn:Lnbisdk/gn;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v0, v0, Lnbisdk/ba;->sn:Lnbisdk/gn;

    invoke-interface {v0}, Lnbisdk/gn;->bl()Z

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iput-boolean v5, v0, Lnbisdk/ba;->su:Z

    goto :goto_1
.end method

.method public final onLocationError(I)V
    .locals 2

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-boolean v0, v0, Lnbisdk/ba;->su:Z

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {p1}, Lnbisdk/ba;->aV(I)I

    move-result v1

    invoke-static {v0, v1}, Lnbisdk/ba;->a(Lnbisdk/ba;I)I

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {v0}, Lnbisdk/ba;->g(Lnbisdk/ba;)V

    iget-object v0, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    invoke-static {v0}, Lnbisdk/ba;->f(Lnbisdk/ba;)V

    invoke-static {}, Lnbisdk/gi;->fk()Lnbisdk/gi;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lnbisdk/hk;->kA:Lnbisdk/ba;

    iget-object v1, v1, Lnbisdk/ba;->bR:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Lnbisdk/gi;->a(Ljava/lang/Runnable;)V

    :cond_0
    return-void
.end method
